<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

//登录
Route::post('login', 'api/Login/index');
Route::get('index', 'api/Index/index');
//注册
Route::post('register', 'api/Login/register');
//短信
Route::post('sms', 'api/Sms/index');
//上传
Route::post('upload', 'api/Upload/index');
//退出登录
Route::post('quitLogin', 'api/Login/quitLogin');
//找回密码
Route::post('resetting', 'api/Login/resetting');
//开播创建房间
Route::post('/live/createRoom', 'api/CreateRoom/createRoom');
//聊天
Route::rule('worker', 'api/Workertest/index');
Route::rule('clicap', 'api/Clicap/index');
Route::rule('getClicaptchaText', 'api/Clicap/getClicaptchaText');
Route::rule('indextest', 'api/Test/index');


//获取直播推流地址
Route::get('getPushLiveUrl', 'api/LiveController/getPushLiveUrl');
//获取播流地址
Route::get('getPlayLiveUrl', 'api/LiveController/getPlayLiveUrl');
//获取直播群在线成员列表
Route::get('getOnlineMembers', 'api/LiveController/getOnlineMembers');
//获取直播群在线人数
Route::get('getOnlineMemberNum', 'api/LiveController/getOnlineMemberNum');


//获取发起音视频token
Route::post('getRtcToken', 'api/RtcController/getRtcToken');
//创建音视频房间
Route::post('getRtcUrl', 'api/RtcController/getRtcUrl');
//获取房间列表
Route::get('getRtcList', 'api/RtcController/getRtcList');
//获取房间详情
Route::get('channelDetails', 'api/RtcController/channelDetails');
//加入房间
Route::post('addChannel', 'api/RtcController/addChannel');
//编辑房间
Route::post('editChannel', 'api/RtcController/editChannel');
//删除房间
Route::post('deleteChannel', 'api/RtcController/deleteChannel');
//获取房间正式成员列表
Route::get('getChannelUserList', 'api/RtcController/getChannelUserList');
//用户抢麦
Route::post('userWheat', 'api/RtcController/userWheat');
//抢麦列表
Route::get('WheatList', 'api/RtcController/WheatList');
//房主禁麦
Route::post('prohibitWheat', 'api/RtcController/prohibitWheat');
//房主控麦
Route::post('controlWheat', 'api/RtcController/controlWheat');
//用户开始发言
Route::post('startSpeak', 'api/RtcController/startSpeak');
//判断用户是否可以发言(说话)
Route::post('isCanTalk', 'api/RtcController/isCanTalk');
//判断用户是否为房主
Route::post('isHomeowner', 'api/RtcController/isHomeowner');
//将指定终端用户从房间踢出
Route::post('RemoveTerminals', 'api/RtcController/RemoveTerminals');
//获取游戏分类列表
Route::get('gameCategoryList', 'api/RtcController/gameCategoryList');


//腾讯云注册用户
Route::post('accountImport', 'api/FriendController/accountImport');
//添加好友
Route::post('addFriend', 'api/FriendController/addFriend');
//获取好友列表
Route::get('friendList', 'api/FriendController/friendList');
//删除好友
Route::post('delFriend', 'api/FriendController/delFriend');

//添加黑名单
Route::post('addBlack', 'api/FriendController/addBlack');
//黑名单列表
Route::get('blackList', 'api/FriendController/blackList');
//删除黑名单
Route::post('delBlack', 'api/FriendController/delBlack');

//添加批量好友分组
Route::post('addGroupFriends', 'api/FriendController/addGroupFriends');
//添加好友分组
Route::post('addGroupFriend', 'api/FriendController/addGroupFriend');
//好友分组列表
Route::get('groupFriendList', 'api/FriendController/groupFriendList');
//删除好友分组
Route::post('delGroupFriend', 'api/FriendController/delGroupFriend');
//修改用户分组
Route::post('updateUserGroup', 'api/FriendController/updateUserGroup');
//移除用户分组
Route::post('delUserGroup', 'api/FriendController/delUserGroup');


//创建群//直播群和社区群
Route::post('addGroup', 'api/GroupController/addGroup');
//编辑群
Route::post('editGroup', 'api/GroupController/editGroup');
//获取群列表
Route::get('groupList', 'api/GroupController/groupList');
//删除群
Route::post('delGroup', 'api/GroupController/delGroup');
//退出群
Route::post('exitGroup', 'api/GroupController/exitGroup');
//加入群
Route::post('joinGroup', 'api/GroupController/joinGroup');

//im回调
Route::post('imCallBack', 'api/ImCallbackController/imCallBack');

//获取用户信息
Route::get('getUserInfo', 'api/UserController/getUserInfo');
Route::post('editUser', 'api/UserController/editUser');
Route::get('aaa', 'api/Test/index');

